package com.qiang.test06;

public class Outer {//外部类
    private int num = 10;//外部成员

    class Inner {//内部类

        public void show() {//内部类方法
            System.out.println(num);
        }
    }

    static class Water {
        public void show() {
            System.out.println("喝水");
        }
    }


    public void method() {
        Inner i = new Inner();
        i.show();
    }
}
